package thread_pool;

import java.util.concurrent.ThreadFactory;

/**
 * @describe: 类描述信息
 * @author: morningcat.zhang
 * @date: 2019/4/18 5:39 PM
 */
public class TestThreadFactory implements ThreadFactory {
    @Override
    public Thread newThread(Runnable runnable) {
        Thread thread = new Thread(runnable, "【线程工厂生产线程】");
        // thread.setPriority(2);
        // thread.setDaemon(true);
        return thread;
    }
}
